import request from '@/plugins/request';
// 设备列表
export function devicesList(data) {
    return request({
      url: "/v1/buss/devices/index",
      method: "get",
      params: data,
    });
}
  
//新增、更新设备
export function createDevices(data) {
    return request({
        url: "/v1/buss/devices/update-devices",
        method: "post",
        data,
    });
}

//删除设备
export function deleteDevices(data) {
    return request({
        url: "/v1/buss/devices/delete-devices",
        method: "post",
        data,
    });
}

// 人员下拉列表
export function getMemberCondition(data) {
    return request({
      url: "/v1/buss/devices/get-member-condition",
      method: "get",
      params: data,
    });
}

// 编辑下拉筛选
export function getDevicesCondition(data) {
    return request({
      url: "/v1/buss/devices/edit-condition",
      method: "get",
      params: data,
    });
}